/**
 * 
 */
package w3;

import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;


/**
 * @Title: TestRunner </p>
 * @Package 
 * @Description: 
 * @author Administrator </p>
 * @version 1.0
 */
public interface TestRunner {
	
	public static void main(String[] args) {
		Result result = JUnitCore.runClasses(CommissionTest.class);
		
		for (Failure failure : result.getFailures()) {
			
	         System.out.println(failure.toString());
	      }
	      System.out.println(result.wasSuccessful());
	}

}
